﻿@model Mvc4TwitterBootstrap.Models.PersonModel

@{
    ViewBag.Title = "Edit";
}

<div class="span12">
	<h2>Edit - PersonModel</h2>
	<hr/>
	<div class="well">Kurzer Beschreibungstext für das aktuelle Formular - Bearbeiten eines Objektes</div>
</div>

<div class="span12">
@using (Html.BeginForm("Edit", "YourControllerName", FormMethod.Post, new { @class = "form-horizontal" })) {
    <fieldset>
    @Html.MyValidationSummary()
        <div class="control-group">
            @Html.LabelFor(model => model.Vorname, new { @class = "control-label" })
          <div class="controls">
              @Html.EditorFor(model => model.Vorname)
              @Html.ValidationMessageFor(model => model.Vorname)
          </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(model => model.Nachname, new { @class = "control-label" })
          <div class="controls">
              @Html.EditorFor(model => model.Nachname)
              @Html.ValidationMessageFor(model => model.Nachname)
          </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(model => model.Ort, new { @class = "control-label" })
          <div class="controls">
              @Html.EditorFor(model => model.Ort)
              @Html.ValidationMessageFor(model => model.Ort)
          </div>
        </div>
        <div class="form-actions">
            <input class="btn btn-primary" type="submit" value="Save" />
        </div>
    </fieldset>
}
</div>

<div class="span12">
	<div class="well">
		@Html.ActionLink("Back to List", "List", null, new {@class="btn btn-small" , data_icon="icon-arrow-left"})
	</div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
